#pragma once

#include "Functions.h"
#include "Vector2.h"
#include "Math.h"
#include "mathhelper.h"

namespace BAA
{

	class FunctionLinear: public Function
	{
	public:

		FunctionLinear(std::string name, Vector2 functionRange): Function(name), range(functionRange)
		{

		}

		float calculate(float value)
		{
			return MathHelper::clamp(&range, value);
			//return 0;
		}


	protected:
		Vector2 range;

		
	};// end class
}

